﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace CoreCms.Net.Model.Entities
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("xrc_commissin")]
    public class XrcCommission
    {
        /// <summary>
        /// 佣金Id 
        ///</summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 订单Id 
        ///</summary>
        [SugarColumn(ColumnName = "order_id")]
        public int Order_Id { get; set; }

        /// <summary>
        /// 用户Id 
        ///</summary>
        [SugarColumn(ColumnName = "user_id")]
        public int User_Id { get; set; }
   
        /// <summary>
        /// 分佣比例  可用默认 可编辑
        ///</summary>
        [SugarColumn(ColumnName = "rate")]
        public double Rate { get; set; }

        /// <summary>
        /// 佣金 
        ///</summary>
        [SugarColumn(ColumnName = "price")]
        public decimal Price { get; set; }

        /// <summary>
        /// 结佣时间 
        ///</summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 备注
        ///</summary>
        [SugarColumn(ColumnName = "remark")]
        public string Remark { get; set; }
        /// <summary>
        /// 删除状态 0 未删除 1 已删除 
        ///</summary>
        [SugarColumn(ColumnName = "state")]
        public int State { get; set; }

        /// <summary>
        /// 删除状态 0 未删除 1 已删除 
        ///</summary>
        [SugarColumn(ColumnName = "delete")]
        public int Delete { get; set; }
    }
}
